cmake_minimum_required(VERSION 3.10)

set(CMAKE_CXX_STANDARD 11)

# set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
# set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

# set the project name
project(AFLdemo VERSION 1.0)

option(DATE_ENABLE "output date" ON)
if(DATE_ENABLE)
    set(DATE "2022.7.12")
endif()

configure_file(config.h.in config.h)

add_subdirectory(afl-2.52b)

# add the executable
add_executable(${PROJECT_NAME} main.cpp)

set(PROGS afl-gcc afl-fuzz afl-showmap afl-tmin afl-gotcpu afl-analyze afl-as)

# foreach(f ${PROGS})
#     target_link_libraries(${PROJECT_NAME} PUBLIC ${f})
# endforeach()

# target_link_libraries(${PROJECT_NAME} PUBLIC addition)
# target_link_libraries(${PROJECT_NAME} PUBLIC subtract)
# target_link_libraries(demo PUBLIC C:/Users/15197/Desktop/demo/other_lib/libmultiply.a)
# target_link_libraries(demo PUBLIC C:/Users/15197/Desktop/demo/other_lib/libdivision.dll)

include_directories(${PROJECT_BINARY_DIR})

target_include_directories(${PROJECT_NAME} PUBLIC
                           ${PROJECT_BINARY_DIR}
                           )

